#充值kubeadm环境
kubeadm reset

#kube版本
KUBE_VERSION=1.21.4
#apiserver地址，也就是master主机地址
APISERVER_ADDRESS=192.168.114.132

kubeadm init --kubernetes-version=$KUBE_VERSION --apiserver-advertise-address=$APISERVER_ADDRESS --pod-network-cidr=10.244.0.0/16

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

